package org.example.laboratorymanagement.service.impl;

import org.example.laboratorymanagement.mapper.AdminMapper;
import org.example.laboratorymanagement.pojo.Admin;
import org.example.laboratorymanagement.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin login(Admin admin) {
        return adminMapper.selectByUsernameAndPwd(admin);
    }

    @Override
    public Admin selectctById(Integer id) {
        return adminMapper.selectById(id);
    }

    @Override
    public void update(Admin admin) {
        adminMapper.update(admin);
    }


}
